using System.Collections.Generic;

namespace EfSample.Model
{
    public interface IRepository<TEntity>
        where TEntity : IEntity
    {
        IEnumerable<TEntity> FindAll();
        TEntity FindById(int id);
        void Add(TEntity entity);
        void Delete(TEntity entity);
        void Update(TEntity entity);
    }
}